home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: HP UX 10.0 C programming
- Date: 05 Jan 1996 06:34:03 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Jan4233403@qcd.lanl.gov>
- References: <4cfje3$qk@nn.fast.net> <4chbdr$k13@umbc9.umbc.edu>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: schlein@umbc.edu's message of 4 Jan 1996 14:56:43 -0500
-
- --text follows this line--
- In article <4chbdr$k13@umbc9.umbc.edu> schlein@umbc.edu (Jonas
- J. Schlein) writes:
- <snip>
- Add the declaration 'struct stat buf;'.
-
- |> int stat(const char *path, struct stat *buf);
-
- I doubt you need this prototype since you #include'd <sys/stat.h>, but it
- doesn't hurt to have it as long as there is no conflict with other
- prototypes.
-
- As stat is not a standard library function, nothing much can be said
- about it from a strict C perspective. However, one must recognize a
- possible danger in explicitly redeclaring a standard function: the
- compiler might have implemented it as a macro in addition! So, before
- prototyping already declared functions, either #undef them first, or
- surround the names in otherwise redundant sets of parentheses.
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-